package com.example.jdbc_test.web;

import com.example.jdbc_test.dao.HandlerDao;
import com.example.jdbc_test.dao.impl.HandlerDaoImpl;

import java.util.List;

/**
 * @ClassName HandlerSelectAllTest
 * @Description TODO
 * @Author Kx
 * @Date 2025/2/27 13:34
 * @Version 1.0
 */
public class HandlerSelectAllTest {
    public static void main(String[] args) {
        // 创建 DAO 接口
        HandlerDao handlerDao = new HandlerDaoImpl();

        List<Object[]> objects = handlerDao.queryStaffArrayAll();

        for (Object[] object : objects){
            for (Object o : object) {
                System.out.println(o);
            }
            System.out.println("------------");
        }
    }
}
